﻿@model LeadMaster.ViewModels.ViewModelOrders
@using LeadMaster.Models;

@{
    int iCounter = 0;
}
<div id="templatesection">
@foreach (ScheduleSection scheduleSection in Model.ScheduleSections)
{
    @Html.HiddenFor(model => model.ScheduleSections[iCounter].ScheduleSectionsID)
    <div class="editor-label" id="ScheduleSections">
        @Html.LabelFor(model => scheduleSection.FieldHeader, "Section Header")
    </div>
    <div class="editor-field">

        @Html.TextAreaFor(model => model.ScheduleSections[iCounter].FieldHeader, new { @class = "largetextbox" })
        <br />
        <div style="width: 1100px;">
        <div style="float:left; ">
        @Html.TextAreaFor(model => model.SectionMergeText[iCounter], new { @class = "sections" })
        </div>
        <div style="float:right;">
        @Html.TextAreaFor(model => model.ScheduleSections[iCounter].Content, new { @class = "notes readonlytextarea", @readonly = "true" })
        </div>
        </div>
        @Html.ValidationMessageFor(model => scheduleSection.FieldHeader)
    </div>
    <div class="spacer"></div>
    iCounter++;
}
</div>        
